package com.sxx.mall.product.feign;

import com.sxx.commons.dto.es.SkuESModel;
import com.sxx.commons.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Auther: sunxx
 * @Date: 2024/7/29 - 07 - 29 - 21:51
 * @Description: com.sxx.mall.product.feign
 * @version: 1.0
 */
@FeignClient("mall-search")
public interface SearchFeignService {

    /*
     * 存储商品上架信息到Elasticsearch服务的接口
     * */
    @PostMapping("/es/save/product")
    public R productStatusUp(@RequestBody List<SkuESModel> skuESModels);
}
